package videojuegoalpha;
import java.awt.image.BufferedImage;
public class Lifes {
    int lifes;
    BufferedImage spritesLifes;
    Character character = null;
    
    // Métodos propios
    
    public int removeLife(){
        if(!character.getAvoidedObstacle()/*Método detector de colisión por desarrollar*/)
            return --lifes;
        else return lifes;
    }
    
    public int addLife(){
        if(character.getPowerUp()/*Método detector de powerUp por desarrollar*/){
            if(lifes>=3)
                return lifes;
            else
                return ++lifes;
        }
        return lifes;
    }
    
    
    // Getters y setters.

    public int getLifes() {
        return lifes;
    }

    public void setLifes(int lifes) {
        this.lifes = lifes;
    }

    public BufferedImage getSpritesLifes() {
        return spritesLifes;
    }

    public void setSpritesLifes(BufferedImage spritesLifes) {
        this.spritesLifes = spritesLifes;
    }
}
